// 加入我们底部模块
<template>
  <div class="teamwork-footer">
    <h1 :class="{'move-class' : joinMove}">加入我们</h1>
    <div class="middle-box">
      <ul>
        <li :class="{'move-class' : joinMove}">
          <i class="iconfont iconwuyefang"  />
          <h3>成为物业合作伙伴</h3>
          <p>智梯万家，将帮助你基于现有的业务赢得更多客户和收入。立即浏览我们的合作机会</p>
          <button>
            <router-link to="/">立即加入</router-link>
          </button>
        </li>
        <li :class="{'move-class' : joinMove}">
          <i  class="iconfont iconweibao" />
          <h3>维保企业加盟</h3>
          <p>智梯万家，将帮助你基于现有的业务赢得更多客户和收入。立即浏览我们的合作机会</p>
          <button>
            <router-link to="/">立即加入</router-link>
          </button>
        </li>
        <li :class="{'move-class' : joinMove}">
          <i class="iconfont icongongyingshangguanli"  />
          <h3>成为配件供应商</h3>
          <p>智梯万家，将帮助你基于现有的业务赢得更多客户和收入。立即浏览我们的合作机会</p>
          <button>
            <router-link to="/">立即加入</router-link>
          </button>
        </li>
      </ul>
    </div>
  </div>
</template>
<script>
export default {
  name: "TeamworkFooter",
  data() {
    return {
      joinMove: false
    };
  },
  mounted() {
    window.addEventListener("scroll", this.MoveEvent);//监听鼠标滚动事件
  },
  methods: {
    // 滚动触发
    MoveEvent() {
      if (document.documentElement.scrollTop >= 600 || document.body.scrollTop >= 600) {
        this.joinMove =true
      }
    }
  }
};
</script>
<style lang='scss' scoped>
.teamwork-footer {
  height: 756px;
  width: 100%;
  background: url("../../../assets/img/teamworw/Group3.jpg") no-repeat;
  text-align: center;
   overflow: hidden;
   .move-class{
    transition: all 3s ;
    transform: translateX(0)!important;
  } 
  h1 {
    transform: translateX(-100%);
    font-size: 50px;
    margin-top: 100px;
    color: #fff;
    font-weight: 500;
  }
  .middle-box {
    ul {
      display: flex;
      justify-content: center;
      li {
        padding: 0 53px;
        box-sizing: border-box;
        width: 385px;
        height: 439px;
        margin-left: 20px;
        margin-top: 60px;
        color: black;
      
        &:first-child {
          transform: translateX(400%);
          background-color: #ffffff;
          margin-left: 0;
        }
        &:nth-child(2) {
          transform: translateX(600%);
          background-color: #4f7bd9;
          a {
            color: #4f7bd9;
            background-color: #fff;
          }
          h3 {
            color: #fff;
          }
          p {
            color: #fff;
          } 

          &:hover{
          background-color:#fff ;
          a {
            color: #fff;
            background-color:#4f7bd9 ;
          }
          h3 {
            color: black;
          }
          p {
            color: black;
          }
        }
        }
         &:last-child {
          transform: translateX(900%);
          background-color: #ffffff;
        }

        i {
          display: inline-block;
          margin-top: 65px;
          width: 63px;
          height: 64px;
          font-size: 64px;
        }
        h3 {
          margin-top: 20px;
          font-size: 30px;
          color: black;
        }
        p {
          margin-top: 20px;
          font-size: 14px;
          color: #666;
        }
        button {
          margin-top: 50px;

          a {
            display: inline-block;
            width: 168px;
            height: 44px;
            line-height: 44px;
            color: #fff;
            background-color: #4f7bd9;
            font-size: 14px;
          }
        }
          &:hover{
          background-color:#4f7bd9 ;
          a {
            color: #4f7bd9;
            background-color: #fff;
          }
          h3 {
            color: #fff;
          }
          p {
            color: #fff;
          }
        }
      }
    }
  }
}
</style>